<?php
/*
 * estudo de padrões de projetos com php
 * author: fabricio s costa
 * version: 1.0
 * site: http://fabriciojf.com
 */

require_once('com/fabriciojf/action/Action.class.php');

class HomePostAction implements Action {

    public function execute() {

        require_once('com/fabriciojf/persistence/PostDAO.class.php');
        $postDao = new PostDAO();

        $_REQUEST["posts"] = $postDao->listAll(1,10);
        require_once('com/fabriciojf/view/HomePost.php');
    }
}
?>
